package com.yjz.springlearn.SpringAnnotation;

import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.util.Map;

/**
 * @Desc
 * @Author: jinzhong.yuan
 * @Date: 2019/2/18 18:25
 */
public class ConditionalTest {
  AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(MyConfigure.class);

  @Test
  public void conditionTest() {
    Map<String, User> map = applicationContext.getBeansOfType(User.class);
    System.out.println(map);
  }
}
